package com.gyg.constant;

/**
 * @author gyg
 * @version V1.0.0
 * @description: Redis相关Key汇总
 * @date 2021/02/20 10:32
 */
public class RedisConstants {

    public static final String COMMON_PREFIX = "gyg:cloud:";

    public static class key {
        /**
         * 短信验证码
         */
        private static final String SMS = COMMON_PREFIX + "sms:%s";
        public static String getSms(String mobile) {
            return String.format(SMS, mobile);
        }
        /**
         * 菜单列表
         */
        public static final String MENU = COMMON_PREFIX + "menu";
    }

}
